package com.saxon.springcloud.service;


import com.saxon.springcloud.pojo.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@Component
@FeignClient(value = "SAXON",fallbackFactory = DeptClientServiceFallBackFactory.class)
public interface FeignService {


    @GetMapping("/get/{id}")
    Dept queryDeptById (@PathVariable("id") long id);

}
